package com.jdrx.sw.sewage.beans.entity;

import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@ApiModel(value = "AI预警参数和值")
@Data
public class ForecastPvPO {
    @ApiModelProperty(value = "预警id")
    private Long forecastId;

    @ApiModelProperty(value = "值")
    private Double dataValue;

    @ApiModelProperty(value = "时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime dataTime;

    @ApiModelProperty(value = "模型预测参数json")
    private JSONObject forecastParam;

    @ApiModelProperty(value = "类型(1-检测 2-预测)")
    private Integer type;

    @ApiModelProperty(value = "数据节点")
    private String dataNode;
}